using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyBullet : MonoBehaviour
{
    public float speed;
    public float live_time;

    void Update()
    {
        if (live_time > 0)
        {
            live_time -= Time.deltaTime;
        }
        else
        {
            Destroy(this.gameObject);
        }

        transform.position += new Vector3(speed * Time.deltaTime, 0, 0);
    }
}
